package bm

import (
	"github.com/gin-gonic/gin"
	"app/api/bm/sm"
	"app/api/bm/crm"
)

func InitRouter(en *gin.Engine) {
	mr := en.Group("/bm/sm/menu")
	mr.GET("/child", sm.BmSmMenuQueryByPid)
	mr.GET("/child/:pid", sm.BmSmMenuQueryByPid)
	initCrmRouter(en)
}

func initCrmRouter(en *gin.Engine) {
	crmR := en.Group("/bm/crm")
	wkR := crmR.Group("/worklog")
	wkR.GET("/page", crm.WorkLogQueryAll)
}
